ngram_range = 2


def create_ngram_set(input_list):
    """
    :description 从数值列表中提取所有的ngram特征
    :param input_list:
    :return: ngram特征组成的集合
    """
    x = set(zip(*[input_list[i:] for i in range(ngram_range)]))
    print(x)


input_ = [1, 3, 2, 5, 1, 5, 3]
create_ngram_set(input_)
